import request from '@/utils/request'

// 查询会员余额列表
export function listCustomerBalance(query) {
  return request({
    url: '/hospital/CustomerBalance/list',
    method: 'get',
    params: query
  })
}

// 查询会员余额详细
export function getCustomerBalance(id) {
  return request({
    url: '/hospital/CustomerBalance/' + id,
    method: 'get'
  })
}

// 新增会员余额
export function addCustomerBalance(data) {
  return request({
    url: '/hospital/CustomerBalance',
    method: 'post',
    data: data
  })
}

// 修改会员余额
export function updateCustomerBalance(data) {
  return request({
    url: '/hospital/CustomerBalance',
    method: 'put',
    data: data
  })
}

// 删除会员余额
export function delCustomerBalance(id) {
  return request({
    url: '/hospital/CustomerBalance/' + id,
    method: 'delete'
  })
}
